const Layout = () => import('@/layout/index.vue')

export default {
  name: 'User',
  path: '/user',
  component: Layout,
  redirect: '/user/doctor',
  meta: {
    title: '用户管理',
    icon: 'material-symbols:supervisor-account',
    role: ['admin'],
    requireAuth: true,
    order: 5,
  },
  children: [
    {
      name: 'Doctor',
      path: 'doctor',
      component: () => import('./doctor/index.vue'),
      meta: {
        title: '医生管理',
        icon: 'fa6-solid:user-doctor',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'Disease',
      path: 'disease',
      component: () => import('./disease/index.vue'),
      meta: {
        title: '用户管理',
        icon: 'material-symbols:person',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
  ],
}
